package com.lcw.lostandfound.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Admin {
    private Integer id;
    private String name;
    private String password;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date date;
    private Integer type;

    public Admin(String name, String password) {
        this.name = name;
        this.password = password;
    }

    public Admin(String name, String password, Integer type) {
        this.name = name;
        this.password = password;
        this.type = type;
    }

    public Admin(Integer id, String name, String password, Integer type) {
        this.id = id;
        this.name = name;
        this.password = password;
        this.type = type;
    }
}
